<#include "header.ftl">
	<#include "topbar.ftl">
    <!--container start-->
    <div class="container">
        <div class="row">
            <!--blog start-->
            <div class="col-xs-12 ">
				<div class="panel panel-default">
					  <div class="panel-heading">${attachment.name}</div>
					  <div class="panel-body">            
		            	<#if attachment.description??>${attachment.description}</#if></div>
		            	<img src="<#if attachment.path??>${attachment.path}</#if>"/>
	                  </div>
	            </div>  
	            
			</div>
            <!--blog end-->
        </div>

    </div>
    <!--container end-->    

<script type="text/javascript">
$(function() {
	$("#submit").click(function(){
		if(editor.html()==""){
			bootbox.alert("评论不能为空");
			return;
		}
		var d=$("#add_leaveMsg_form").serialize();
        $.post("/article/add_leaveMsg_form.json", d, 
			function (data) 
			{ 
	        	if (data.result) {
					bootbox.alert("评论成功，将刷新页面", function() {
						window.location.reload();
					});
				}else{
					bootbox.alert("表单验证失败，请检查");
				}
			});
	});
});	
</script>
<#include "footer.ftl">